package com.qezhhnjy.bilibili.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhaoyangfu - 2021/4/4 0:10
 */
@FeignClient(value = "cloud-provider-hystrix-payment", fallback = PaymentServiceFallback.class)
@Service
public interface PaymentService {

    @GetMapping("/payment/hystrix/ok/{id}")
    String ok(@PathVariable("id") int id);

    @GetMapping("/payment/hystrix/timeout/{id}")
    String timeout(@PathVariable("id") int id);
}
